package com.cxso.example.response.position;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Getter
@Setter
@Schema(description = "经纬度转详细地址")
public class PositionConvertResponse implements Serializable {

    @Schema(description = "批次号", example = "1.2")
    private String no;

    @Schema(description = "详细地址", example = "1.2")
    private String formattedAddress;


    @Schema(description = "中国")
    private String country;

    @Schema(description = "坐标点所在省名称")
    private String province;


    @Schema(description = "坐标点所在城市名称")
    private String city;

    @Schema(description = "城市编码")
    private String cityCode;


    @Schema(description = "坐标点所在区")
    private String district;


    @Schema(description = "行政区编码")
    private String adCode;

    @Schema(description = "坐标点所在乡镇/街道（此街道为社区街道，不是道路信息）")
    private String townShip;


    @Schema(description = "乡镇街道编码")
    private String townCode;


    @Schema(description = "门牌信息列表")
    private StreetNumberDomain streetNumber;

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class StreetNumberDomain {

        @Schema(description = "街道名称")
        private String street;


        @Schema(description = "门牌号")
        private String number;


        @Schema(description = "坐标点  116.482005,39.990056")
        private String location;


        @Schema(description = "方向")
        private String direction;


        @Schema(description = "门牌地址到请求坐标的距离 63.4741")
        private String distance;
    }
}
